<?php

mysql_connect("localhost","root","");
mysql_select_db("gis");
$nip = $_GET['pegawai'];
$pegawai = mysql_query("SELECT `nama_pegawai` as `nama` FROM `pegawai` WHERE `nip` = '$nip' LIMIT 0,1 ");
while($b = mysql_fetch_array($pegawai)){
    echo $b['nama'];
}
$display_string .= '<div class="control-group">
					  <label class="control-label" for="input01">Nama Pegawai</label>
					  <div class="controls">
						<input type="text" class="input-xlarge" id="nama" value="'.$b['nama'].'" name="nama" rel="popover" data-content="Masukkan Nama Pegawai" data-original-title="Nama Pegawai">
					  </div>
					</div>';
?>